# -*- coding: utf-8 -*-
"""
@Time ： 2022-09-13 17:42
@Auth ： Mr.Z
@Company ：test
@Function ：请输入模块功能描述
"""

import json
import requests
import urllib3

# urllib3.disable_warnings()
#
# # session管理，自动关联set-cookie的内容，加快服务器的连接速度
# session = requests.session()
#
# # 不在session里面的字段
# session.headers['Content-Type'] = 'application/json'
#
# # 登陆
# res = session.post('https://pos3-test-gateway.bgyfoodom.com/auth/systemV1/username-login',
#                    json={"password":"d8GWF69C1A3tOXjb2VP0EaSjgTOD5zF5lRn0Y/yCHJjXdD0XUm+lVmAIO4LMFivLKJkfSm9Rc1cHbWnsNQObRsgY1784HmpIxWCG7Lkf2Aazj8X06u5I5u4/YGRrENS5wgR3VLKGIJLeNcqC1amRqdQXxzsQHuDCcWMKpTPuApc=","name":"15678300490","channelId":"11"},
#                    verify=False)
# res_text = res.text
# print(res_text)
# res_js = json.loads(res_text)
# #
# token = res_js.get('data').get("accessToken")
# print(token)

a = '[{"tableName":null,"capacity":"1","storeId":"1550313489139277827"},' \
    '{"tableName":null,"capacity":"1","storeId":"1550313489139277827"}]'
print(type(a))
b = json.loads(a)
print(b)
print(type(b))

# ll='[{"mealCode": "A0003", "mealQrCode": "?oid=1574645083077939202&code=2028b9d&$$", "mealQrCodeUrl": None, "amount": 0.01, "discountAmount": 0.0, "payAmount": 0.0, "id": "1574645083077939202", "createdTime": "2022-09-27 14:20:18", "statusId": 35, "statusName": "已退款", "typeId": 1, "typeName": "普通订单", "payStatusId": 35, "payStatusName": "已退款", "tableId": "1569971861958893570", "tableName": "01请勿删除", "customerName": None, "customerPhone": None, "mealTime": None}, {"mealCode": "A0004", "mealQrCode": "?oid=1574240328547635201&code=dcc7663&$$", "mealQrCodeUrl": None, "amount": 0.01, "discountAmount": 0.0, "payAmount": 0.01, "id": "1574240328547635201", "createdTime": "2022-09-26 11:31:58", "statusId": 95, "statusName": "已完成", "typeId": 1, "typeName": "普通订单", "payStatusId": 32, "payStatusName": "已支付", "tableId": "1569971861958893570", "tableName": "01请勿删除", "customerName": "1567", "customerPhone": "15678300490", "mealTime": None}, {"mealCode": "A0021", "mealQrCode": "?oid=1573202107486613506&code=4937324&$$", "mealQrCodeUrl": None, "amount": 0.01, "discountAmount": 0.0, "payAmount": 0.01, "id": "1573202107486613506", "createdTime": "2022-09-23 14:46:26", "statusId": 32, "statusName": "已支付", "typeId": 1, "typeName": "普通订单", "payStatusId": 32, "payStatusName": "已支付", "tableId": "1569971861958893570", "tableName": "01请勿删除", "customerName": None, "customerPhone": None, "mealTime": None}, {"mealCode": "A0020", "mealQrCode": "?oid=1573201886409043969&code=c3aaf23&$$", "mealQrCodeUrl": None, "amount": 0.01, "discountAmount": 0.0, "payAmount": 0.01, "id": "1573201886409043969", "createdTime": "2022-09-23 14:45:33", "statusId": 32, "statusName": "已支付", "typeId": 1, "typeName": "普通订单", "payStatusId": 32, "payStatusName": "已支付", "tableId": "1570306172483063810", "tableName": "B02", "customerName": None, "customerPhone": None, "mealTime": None}, {"mealCode": "A0019", "mealQrCode": "?oid=1573201695262027778&code=1b11025&$$", "mealQrCodeUrl": None, "amount": 0.01, "discountAmount": 0.0, "payAmount": 0.01, "id": "1573201695262027778", "createdTime": "2022-09-23 14:44:48", "statusId": 32, "statusName": "已支付", "typeId": 1, "typeName": "普通订单", "payStatusId": 32, "payStatusName": "已支付", "tableId": "1570306169551245315", "tableName": "B01", "customerName": None, "customerPhone": None, "mealTime": None}, {"mealCode": "A0018", "mealQrCode": "?oid=1573199550634700802&code=366946a&$$", "mealQrCodeUrl": None, "amount": 0.01, "discountAmount": 0.0, "payAmount": 0.01, "id": "1573199550634700802", "createdTime": "2022-09-23 14:36:17", "statusId": 32, "statusName": "已支付", "typeId": 1, "typeName": "普通订单", "payStatusId": 32, "payStatusName": "已支付", "tableId": "1570306172483063810", "tableName": "B02", "customerName": None, "customerPhone": None, "mealTime": None}, {"mealCode": "A0017", "mealQrCode": "?oid=1573199337597612033&code=243be02&$$", "mealQrCodeUrl": None, "amount": 0.01, "discountAmount": 0.0, "payAmount": 0.01, "id": "1573199337597612033", "createdTime": "2022-09-23 14:35:26", "statusId": 32, "statusName": "已支付", "typeId": 1, "typeName": "普通订单", "payStatusId": 32, "payStatusName": "已支付", "tableId": "1570306169551245315", "tableName": "B01", "customerName": None, "customerPhone": None, "mealTime": None}, {"mealCode": "A0016", "mealQrCode": "?oid=1573194944437465089&code=08c8231&$$", "mealQrCodeUrl": None, "amount": 0.02, "discountAmount": 0.0, "payAmount": 0.02, "id": "1573194944437465089", "createdTime": "2022-09-23 14:17:59", "statusId": 32, "statusName": "已支付", "typeId": 1, "typeName": "普通订单", "payStatusId": 32, "payStatusName": "已支付", "tableId": "1569971861958893570", "tableName": "01请勿删除", "customerName": None, "customerPhone": None, "mealTime": None}, {"mealCode": "A0007", "mealQrCode": "?oid=1573134848007208962&code=2f9c064&$$", "mealQrCodeUrl": None, "amount": 0.01, "discountAmount": 0.0, "payAmount": 0.0, "id": "1573134848007208962", "createdTime": "2022-09-23 10:19:10", "statusId": 35, "statusName": "已退款", "typeId": 1, "typeName": "普通订单", "payStatusId": 35, "payStatusName": "已退款", "tableId": "1569971861958893570", "tableName": "01请勿删除", "customerName": None, "customerPhone": None, "mealTime": None}, {"mealCode": "A0004", "mealQrCode": "?oid=1573125880170020865&code=dcc7663&$$", "mealQrCodeUrl": None, "amount": 0.01, "discountAmount": 0.0, "payAmount": 0.01, "id": "1573125880170020865", "createdTime": "2022-09-23 09:43:32", "statusId": 32, "statusName": "已支付", "typeId": 1, "typeName": "普通订单", "payStatusId": 32, "payStatusName": "已支付", "tableId": "1569971861958893570", "tableName": "01请勿删除", "customerName": None, "customerPhone": None, "mealTime": None}, {"mealCode": "A0001", "mealQrCode": "?oid=1573119661120290818&code=b2803ec&$$", "mealQrCodeUrl": None, "amount": 0.01, "discountAmount": 0.0, "payAmount": 0.01, "id": "1573119661120290818", "createdTime": "2022-09-23 09:18:54", "statusId": 32, "statusName": "已支付", "typeId": 1, "typeName": "普通订单", "payStatusId": 32, "payStatusName": "已支付", "tableId": "1569971861958893570", "tableName": "01请勿删除", "customerName": None, "customerPhone": None, "mealTime": None}, {"mealCode": "A0001", "mealQrCode": "?oid=1572757180730740737&code=b2803ec&$$", "mealQrCodeUrl": None, "amount": 0.01, "discountAmount": 0.0, "payAmount": 0.0, "id": "1572757180730740737", "createdTime": "2022-09-22 09:18:33", "statusId": 35, "statusName": "已退款", "typeId": 1, "typeName": "普通订单", "payStatusId": 35, "payStatusName": "已退款", "tableId": "1569971861958893570", "tableName": "01请勿删除", "customerName": "增长", "customerPhone": "15678200490", "mealTime": None}, {"mealCode": "A0018", "mealQrCode": "?oid=1572439707237285889&code=366946a&$$", "mealQrCodeUrl": None, "amount": 0.01, "discountAmount": 0.0, "payAmount": 0.0, "id": "1572439707237285889", "createdTime": "2022-09-21 12:16:56", "statusId": 35, "statusName": "已退款", "typeId": 1, "typeName": "普通订单", "payStatusId": 35, "payStatusName": "已退款", "tableId": "1569971861958893570", "tableName": "01请勿删除", "customerName": "？我", "customerPhone": "15678300490", "mealTime": None}, {"mealCode": "A0017", "mealQrCode": "?oid=1572439546486390785&code=243be02&$$", "mealQrCodeUrl": None, "amount": 0.01, "discountAmount": 0.0, "payAmount": 0.01, "id": "1572439546486390785", "createdTime": "2022-09-21 12:16:17", "statusId": 32, "statusName": "已支付", "typeId": 1, "typeName": "普通订单", "payStatusId": 32, "payStatusName": "已支付", "tableId": "1569971861958893570", "tableName": "01请勿删除", "customerName": "问", "customerPhone": "15678300490", "mealTime": None}, {"mealCode": "A0016", "mealQrCode": "?oid=1572438857370632193&code=08c8231&$$", "mealQrCodeUrl": None, "amount": 0.01, "discountAmount": 0.0, "payAmount": 0.01, "id": "1572438857370632193", "createdTime": "2022-09-21 12:13:38", "statusId": 32, "statusName": "已支付", "typeId": 1, "typeName": "普通订单", "payStatusId": 32, "payStatusName": "已支付", "tableId": "1569971861958893570", "tableName": "01请勿删除", "customerName": "卜卜卜卜贝", "customerPhone": "13509625896", "mealTime": None}]'
# b = json.loads(ll)
# print(b)
print(type(b))


# c = '{"tableName":"aaaa","capacity":"1","storeId":"1550313489139277827"}'
# d = json.loads(c)
# print(d)
# print(type(d))
#
# a = '{"code":"0000","msg":"成功。","msgParams":[],' \
#     '"data":{"mealCode":"A0005","mealQrCode":"?oid=1574281158633263105&code=6de5103&$$","mealQrCodeUrl":null,"amount":0.01,"discountAmount":0.00,"payAmount":0.01,"id":"1574281158633263105","createdTime":"2022-09-26 14:14:12","statusId":32,"statusName":"已支付","remark":null,"payStatusId":32,"payStatusName":"已支付","invoiceStatusId":4,"invoiceStatusName":"未开票","refundAmount":0.00,' \
#     '"productList":[{"productId":"1567708142571962370","productName":"顶鲜鸡汁豆芽","specId":"1","specName":"系统默认规格",' \
#     '"productQuantity":1.00,"productWeight":null,"productPrice":0.01,"payableAmount":0.01,"factAmount":0.01,' \
#     '"productFactPrice":0.01,"id":"1574281158863949826","orderStatusId":21,"orderStatusName":"待处理","mealId":null,"mealType":11,"mealInfoList":null,"specialCookInfoList":null,"toppingInfoList":null}],"paymentList":[{"payTypeId":null,"payTypeName":"预约挂账","amount":0.01,"signer":null,"creditUnitName":null,"authorizer":null,"authorizerName":null}]},"success":true}'
# c = json.loads(a)
#
# print(c.get("data").get('productList')[0].get('id'))


# # 添加authorization到请求头
# session.headers['authorization'] = token
# # 新增餐桌
# res = session.post('https://pos3-test-gateway.bgyfoodom.com/manager/store-table/add',
#                    json=b,
#                    verify=False)
#
# res = res.text
# print(res)

# # # aa = {'code': '0000', 'msg': '成功。', 'msgParams': [], 'data': [{'id': '1570242930009812993', 'tableName': 'aaaa', 'storeId': '1550313489139277827', 'storeName': None, 'capacity': 1}], 'success': True}
# # # print(aa.get('data')[0].get('id'))
#
# # 新增菜单
# # res = session.post("https://pos3-test-gateway.bgyfoodom.com/manager/product-menu/insert-store-product-menu",
# #                    '{"name": "11321","serialNumber": "1569584668941688834","orderTypeId": "1","enabled": 0}')
# # print(res.text)
# # res_js = json.loads(res_text)
#
# # 1573203151828291585
#
# # # 新增菜品
# # res = session.post("https://pos3-test-gateway.bgyfoodom.com/manager/product-menu/save-products",
# #                    '[{"id":null,"productMenuId":"1573206265838964737","name":"1231231","icon":null,"sort":1,"products":[]}]')
# # res = res.text
# # print(res)
#
# res = session.post("https://pos3-test-gateway.bgyfoodom.com/manager/product-menu/save-products",
#                    json=[
#                        {"id": None, "productMenuId": "1573206265838964737", "name": "1231231", "icon": None, "sort": 1,
#                         "products": []}])
# res = res.text
# print(res)
#
# res = session.post("https://pos3-test-gateway.bgyfoodom.com/manager/product-menu/save-products",
#                    json=[{"id":None,"productMenuId":"1573206265838964737","name":"1231231","icon":None,"sort":1,"products":[{"productId":"1573205889031081986","productName":"zwx","sort":163,"specs":[{"id":"1573205891128233985","productId":"1573205889031081986","specId":"1","price":0.01,"cost":None,"defaulted":1,"specName":"系统默认规格","typeId":-1,"typeName":"","code":None,"enabled":1}],"specialCooks":[],"toppings":[],"tags":[]}]}])
# res = res.text
# print(res)


# res = json.loads(res)
# print(res)

# cd = '[{"id":null,"productMenuId":"1573201384218562562","name":"111","icon":null,"sort":1,"products":[{"productId":"1567434902541041666","productName":"极鲜鸡汁炒菜心","sort":160,"specs":[{"id":"1567434913442037762","productId":"1567434902541041666","specId":"1","price":0.01,"cost":0.01,"defaulted":1,"specName":"系统默认规格","typeId":-1,"typeName":"","code":null,"enabled":1}],"specialCooks":[],"toppings":[],"tags":[]}]}]'


# aa = {'code': '0000', 'msg': '成功。', 'msgParams': [], 'data': {'size': 15, 'current': 1, 'pages': 6, 'total': 79, 'records': [{'mealCode': 'A0003', 'mealQrCode': '?oid=1574645083077939202&code=2028b9d&$$', 'mealQrCodeUrl': None, 'amount': 0.01, 'discountAmount': 0.0, 'payAmount': 0.01, 'id': '1574645083077939202', 'createdTime': '2022-09-27 14:20:18', 'statusId': 32, 'statusName': '已支付', 'typeId': 1, 'typeName': '普通订单', 'payStatusId': 32, 'payStatusName': '已支付', 'tableId': '1569971861958893570', 'tableName': '01请勿删除', 'customerName': None, 'customerPhone': None, 'mealTime': None}, {'mealCode': 'A0004', 'mealQrCode': '?oid=1574240328547635201&code=dcc7663&$$', 'mealQrCodeUrl': None, 'amount': 0.01, 'discountAmount': 0.0, 'payAmount': 0.01, 'id': '1574240328547635201', 'createdTime': '2022-09-26 11:31:58', 'statusId': 95, 'statusName': '已完成', 'typeId': 1, 'typeName': '普通订单', 'payStatusId': 32, 'payStatusName': '已支付', 'tableId': '1569971861958893570', 'tableName': '01请勿删除', 'customerName': '1567', 'customerPhone': '15678300490', 'mealTime': None}, {'mealCode': 'A0021', 'mealQrCode': '?oid=1573202107486613506&code=4937324&$$', 'mealQrCodeUrl': None, 'amount': 0.01, 'discountAmount': 0.0, 'payAmount': 0.01, 'id': '1573202107486613506', 'createdTime': '2022-09-23 14:46:26', 'statusId': 32, 'statusName': '已支付', 'typeId': 1, 'typeName': '普通订单', 'payStatusId': 32, 'payStatusName': '已支付', 'tableId': '1569971861958893570', 'tableName': '01请勿删除', 'customerName': None, 'customerPhone': None, 'mealTime': None}, {'mealCode': 'A0020', 'mealQrCode': '?oid=1573201886409043969&code=c3aaf23&$$', 'mealQrCodeUrl': None, 'amount': 0.01, 'discountAmount': 0.0, 'payAmount': 0.01, 'id': '1573201886409043969', 'createdTime': '2022-09-23 14:45:33', 'statusId': 32, 'statusName': '已支付', 'typeId': 1, 'typeName': '普通订单', 'payStatusId': 32, 'payStatusName': '已支付', 'tableId': '1570306172483063810', 'tableName': 'B02', 'customerName': None, 'customerPhone': None, 'mealTime': None}, {'mealCode': 'A0019', 'mealQrCode': '?oid=1573201695262027778&code=1b11025&$$', 'mealQrCodeUrl': None, 'amount': 0.01, 'discountAmount': 0.0, 'payAmount': 0.01, 'id': '1573201695262027778', 'createdTime': '2022-09-23 14:44:48', 'statusId': 32, 'statusName': '已支付', 'typeId': 1, 'typeName': '普通订单', 'payStatusId': 32, 'payStatusName': '已支付', 'tableId': '1570306169551245315', 'tableName': 'B01', 'customerName': None, 'customerPhone': None, 'mealTime': None}, {'mealCode': 'A0018', 'mealQrCode': '?oid=1573199550634700802&code=366946a&$$', 'mealQrCodeUrl': None, 'amount': 0.01, 'discountAmount': 0.0, 'payAmount': 0.01, 'id': '1573199550634700802', 'createdTime': '2022-09-23 14:36:17', 'statusId': 32, 'statusName': '已支付', 'typeId': 1, 'typeName': '普通订单', 'payStatusId': 32, 'payStatusName': '已支付', 'tableId': '1570306172483063810', 'tableName': 'B02', 'customerName': None, 'customerPhone': None, 'mealTime': None}, {'mealCode': 'A0017', 'mealQrCode': '?oid=1573199337597612033&code=243be02&$$', 'mealQrCodeUrl': None, 'amount': 0.01, 'discountAmount': 0.0, 'payAmount': 0.01, 'id': '1573199337597612033', 'createdTime': '2022-09-23 14:35:26', 'statusId': 32, 'statusName': '已支付', 'typeId': 1, 'typeName': '普通订单', 'payStatusId': 32, 'payStatusName': '已支付', 'tableId': '1570306169551245315', 'tableName': 'B01', 'customerName': None, 'customerPhone': None, 'mealTime': None}, {'mealCode': 'A0016', 'mealQrCode': '?oid=1573194944437465089&code=08c8231&$$', 'mealQrCodeUrl': None, 'amount': 0.02, 'discountAmount': 0.0, 'payAmount': 0.02, 'id': '1573194944437465089', 'createdTime': '2022-09-23 14:17:59', 'statusId': 32, 'statusName': '已支付', 'typeId': 1, 'typeName': '普通订单', 'payStatusId': 32, 'payStatusName': '已支付', 'tableId': '1569971861958893570', 'tableName': '01请勿删除', 'customerName': None, 'customerPhone': None, 'mealTime': None}, {'mealCode': 'A0007', 'mealQrCode': '?oid=1573134848007208962&code=2f9c064&$$', 'mealQrCodeUrl': None, 'amount': 0.01, 'discountAmount': 0.0, 'payAmount': 0.0, 'id': '1573134848007208962', 'createdTime': '2022-09-23 10:19:10', 'statusId': 35, 'statusName': '已退款', 'typeId': 1, 'typeName': '普通订单', 'payStatusId': 35, 'payStatusName': '已退款', 'tableId': '1569971861958893570', 'tableName': '01请勿删除', 'customerName': None, 'customerPhone': None, 'mealTime': None}, {'mealCode': 'A0004', 'mealQrCode': '?oid=1573125880170020865&code=dcc7663&$$', 'mealQrCodeUrl': None, 'amount': 0.01, 'discountAmount': 0.0, 'payAmount': 0.01, 'id': '1573125880170020865', 'createdTime': '2022-09-23 09:43:32', 'statusId': 32, 'statusName': '已支付', 'typeId': 1, 'typeName': '普通订单', 'payStatusId': 32, 'payStatusName': '已支付', 'tableId': '1569971861958893570', 'tableName': '01请勿删除', 'customerName': None, 'customerPhone': None, 'mealTime': None}, {'mealCode': 'A0001', 'mealQrCode': '?oid=1573119661120290818&code=b2803ec&$$', 'mealQrCodeUrl': None, 'amount': 0.01, 'discountAmount': 0.0, 'payAmount': 0.01, 'id': '1573119661120290818', 'createdTime': '2022-09-23 09:18:54', 'statusId': 32, 'statusName': '已支付', 'typeId': 1, 'typeName': '普通订单', 'payStatusId': 32, 'payStatusName': '已支付', 'tableId': '1569971861958893570', 'tableName': '01请勿删除', 'customerName': None, 'customerPhone': None, 'mealTime': None}, {'mealCode': 'A0001', 'mealQrCode': '?oid=1572757180730740737&code=b2803ec&$$', 'mealQrCodeUrl': None, 'amount': 0.01, 'discountAmount': 0.0, 'payAmount': 0.0, 'id': '1572757180730740737', 'createdTime': '2022-09-22 09:18:33', 'statusId': 35, 'statusName': '已退款', 'typeId': 1, 'typeName': '普通订单', 'payStatusId': 35, 'payStatusName': '已退款', 'tableId': '1569971861958893570', 'tableName': '01请勿删除', 'customerName': '增长', 'customerPhone': '15678200490', 'mealTime': None}, {'mealCode': 'A0018', 'mealQrCode': '?oid=1572439707237285889&code=366946a&$$', 'mealQrCodeUrl': None, 'amount': 0.01, 'discountAmount': 0.0, 'payAmount': 0.0, 'id': '1572439707237285889', 'createdTime': '2022-09-21 12:16:56', 'statusId': 35, 'statusName': '已退款', 'typeId': 1, 'typeName': '普通订单', 'payStatusId': 35, 'payStatusName': '已退款', 'tableId': '1569971861958893570', 'tableName': '01请勿删除', 'customerName': '？我', 'customerPhone': '15678300490', 'mealTime': None}, {'mealCode': 'A0017', 'mealQrCode': '?oid=1572439546486390785&code=243be02&$$', 'mealQrCodeUrl': None, 'amount': 0.01, 'discountAmount': 0.0, 'payAmount': 0.01, 'id': '1572439546486390785', 'createdTime': '2022-09-21 12:16:17', 'statusId': 32, 'statusName': '已支付', 'typeId': 1, 'typeName': '普通订单', 'payStatusId': 32, 'payStatusName': '已支付', 'tableId': '1569971861958893570', 'tableName': '01请勿删除', 'customerName': '问', 'customerPhone': '15678300490', 'mealTime': None}, {'mealCode': 'A0016', 'mealQrCode': '?oid=1572438857370632193&code=08c8231&$$', 'mealQrCodeUrl': None, 'amount': 0.01, 'discountAmount': 0.0, 'payAmount': 0.01, 'id': '1572438857370632193', 'createdTime': '2022-09-21 12:13:38', 'statusId': 32, 'statusName': '已支付', 'typeId': 1, 'typeName': '普通订单', 'payStatusId': 32, 'payStatusName': '已支付', 'tableId': '1569971861958893570', 'tableName': '01请勿删除', 'customerName': '卜卜卜卜贝', 'customerPhone': '13509625896', 'mealTime': None}]}, 'success': True}
# bb = aa.get("data").get("records")
# # print(bb)
#
# for i in range(0,len(bb)):
#     if bb[i].get('payStatusName')=="已支付":
#         print(bb[i])
#         print(bb[i].get("id"))
#         break
# aa = "[{'mealCode': 'A0003', 'mealQrCode': '?oid=1574645083077939202&code=2028b9d&$$', 'mealQrCodeUrl': None, 'amount': 0.01, 'discountAmount': 0.0, 'payAmount': 0.0, 'id': '1574645083077939202', 'createdTime': '2022-09-27 14:20:18', 'statusId': 35, 'statusName': '已退款', 'typeId': 1, 'typeName': '普通订单', 'payStatusId': 35, 'payStatusName': '已退款', 'tableId': '1569971861958893570', 'tableName': '01请勿删除', 'customerName': None, 'customerPhone': None, 'mealTime': None}, {'mealCode': 'A0004', 'mealQrCode': '?oid=1574240328547635201&code=dcc7663&$$', 'mealQrCodeUrl': None, 'amount': 0.01, 'discountAmount': 0.0, 'payAmount': 0.01, 'id': '1574240328547635201', 'createdTime': '2022-09-26 11:31:58', 'statusId': 95, 'statusName': '已完成', 'typeId': 1, 'typeName': '普通订单', 'payStatusId': 32, 'payStatusName': '已支付', 'tableId': '1569971861958893570', 'tableName': '01请勿删除', 'customerName': '1567', 'customerPhone': '15678300490', 'mealTime': None}, {'mealCode': 'A0021', 'mealQrCode': '?oid=1573202107486613506&code=4937324&$$', 'mealQrCodeUrl': None, 'amount': 0.01, 'discountAmount': 0.0, 'payAmount': 0.01, 'id': '1573202107486613506', 'createdTime': '2022-09-23 14:46:26', 'statusId': 32, 'statusName': '已支付', 'typeId': 1, 'typeName': '普通订单', 'payStatusId': 32, 'payStatusName': '已支付', 'tableId': '1569971861958893570', 'tableName': '01请勿删除', 'customerName': None, 'customerPhone': None, 'mealTime': None}, {'mealCode': 'A0020', 'mealQrCode': '?oid=1573201886409043969&code=c3aaf23&$$', 'mealQrCodeUrl': None, 'amount': 0.01, 'discountAmount': 0.0, 'payAmount': 0.01, 'id': '1573201886409043969', 'createdTime': '2022-09-23 14:45:33', 'statusId': 32, 'statusName': '已支付', 'typeId': 1, 'typeName': '普通订单', 'payStatusId': 32, 'payStatusName': '已支付', 'tableId': '1570306172483063810', 'tableName': 'B02', 'customerName': None, 'customerPhone': None, 'mealTime': None}, {'mealCode': 'A0019', 'mealQrCode': '?oid=1573201695262027778&code=1b11025&$$', 'mealQrCodeUrl': None, 'amount': 0.01, 'discountAmount': 0.0, 'payAmount': 0.01, 'id': '1573201695262027778', 'createdTime': '2022-09-23 14:44:48', 'statusId': 32, 'statusName': '已支付', 'typeId': 1, 'typeName': '普通订单', 'payStatusId': 32, 'payStatusName': '已支付', 'tableId': '1570306169551245315', 'tableName': 'B01', 'customerName': None, 'customerPhone': None, 'mealTime': None}, {'mealCode': 'A0018', 'mealQrCode': '?oid=1573199550634700802&code=366946a&$$', 'mealQrCodeUrl': None, 'amount': 0.01, 'discountAmount': 0.0, 'payAmount': 0.01, 'id': '1573199550634700802', 'createdTime': '2022-09-23 14:36:17', 'statusId': 32, 'statusName': '已支付', 'typeId': 1, 'typeName': '普通订单', 'payStatusId': 32, 'payStatusName': '已支付', 'tableId': '1570306172483063810', 'tableName': 'B02', 'customerName': None, 'customerPhone': None, 'mealTime': None}, {'mealCode': 'A0017', 'mealQrCode': '?oid=1573199337597612033&code=243be02&$$', 'mealQrCodeUrl': None, 'amount': 0.01, 'discountAmount': 0.0, 'payAmount': 0.01, 'id': '1573199337597612033', 'createdTime': '2022-09-23 14:35:26', 'statusId': 32, 'statusName': '已支付', 'typeId': 1, 'typeName': '普通订单', 'payStatusId': 32, 'payStatusName': '已支付', 'tableId': '1570306169551245315', 'tableName': 'B01', 'customerName': None, 'customerPhone': None, 'mealTime': None}, {'mealCode': 'A0016', 'mealQrCode': '?oid=1573194944437465089&code=08c8231&$$', 'mealQrCodeUrl': None, 'amount': 0.02, 'discountAmount': 0.0, 'payAmount': 0.02, 'id': '1573194944437465089', 'createdTime': '2022-09-23 14:17:59', 'statusId': 32, 'statusName': '已支付', 'typeId': 1, 'typeName': '普通订单', 'payStatusId': 32, 'payStatusName': '已支付', 'tableId': '1569971861958893570', 'tableName': '01请勿删除', 'customerName': None, 'customerPhone': None, 'mealTime': None}, {'mealCode': 'A0007', 'mealQrCode': '?oid=1573134848007208962&code=2f9c064&$$', 'mealQrCodeUrl': None, 'amount': 0.01, 'discountAmount': 0.0, 'payAmount': 0.0, 'id': '1573134848007208962', 'createdTime': '2022-09-23 10:19:10', 'statusId': 35, 'statusName': '已退款', 'typeId': 1, 'typeName': '普通订单', 'payStatusId': 35, 'payStatusName': '已退款', 'tableId': '1569971861958893570', 'tableName': '01请勿删除', 'customerName': None, 'customerPhone': None, 'mealTime': None}, {'mealCode': 'A0004', 'mealQrCode': '?oid=1573125880170020865&code=dcc7663&$$', 'mealQrCodeUrl': None, 'amount': 0.01, 'discountAmount': 0.0, 'payAmount': 0.01, 'id': '1573125880170020865', 'createdTime': '2022-09-23 09:43:32', 'statusId': 32, 'statusName': '已支付', 'typeId': 1, 'typeName': '普通订单', 'payStatusId': 32, 'payStatusName': '已支付', 'tableId': '1569971861958893570', 'tableName': '01请勿删除', 'customerName': None, 'customerPhone': None, 'mealTime': None}, {'mealCode': 'A0001', 'mealQrCode': '?oid=1573119661120290818&code=b2803ec&$$', 'mealQrCodeUrl': None, 'amount': 0.01, 'discountAmount': 0.0, 'payAmount': 0.01, 'id': '1573119661120290818', 'createdTime': '2022-09-23 09:18:54', 'statusId': 32, 'statusName': '已支付', 'typeId': 1, 'typeName': '普通订单', 'payStatusId': 32, 'payStatusName': '已支付', 'tableId': '1569971861958893570', 'tableName': '01请勿删除', 'customerName': None, 'customerPhone': None, 'mealTime': None}, {'mealCode': 'A0001', 'mealQrCode': '?oid=1572757180730740737&code=b2803ec&$$', 'mealQrCodeUrl': None, 'amount': 0.01, 'discountAmount': 0.0, 'payAmount': 0.0, 'id': '1572757180730740737', 'createdTime': '2022-09-22 09:18:33', 'statusId': 35, 'statusName': '已退款', 'typeId': 1, 'typeName': '普通订单', 'payStatusId': 35, 'payStatusName': '已退款', 'tableId': '1569971861958893570', 'tableName': '01请勿删除', 'customerName': '增长', 'customerPhone': '15678200490', 'mealTime': None}, {'mealCode': 'A0018', 'mealQrCode': '?oid=1572439707237285889&code=366946a&$$', 'mealQrCodeUrl': None, 'amount': 0.01, 'discountAmount': 0.0, 'payAmount': 0.0, 'id': '1572439707237285889', 'createdTime': '2022-09-21 12:16:56', 'statusId': 35, 'statusName': '已退款', 'typeId': 1, 'typeName': '普通订单', 'payStatusId': 35, 'payStatusName': '已退款', 'tableId': '1569971861958893570', 'tableName': '01请勿删除', 'customerName': '？我', 'customerPhone': '15678300490', 'mealTime': None}, {'mealCode': 'A0017', 'mealQrCode': '?oid=1572439546486390785&code=243be02&$$', 'mealQrCodeUrl': None, 'amount': 0.01, 'discountAmount': 0.0, 'payAmount': 0.01, 'id': '1572439546486390785', 'createdTime': '2022-09-21 12:16:17', 'statusId': 32, 'statusName': '已支付', 'typeId': 1, 'typeName': '普通订单', 'payStatusId': 32, 'payStatusName': '已支付', 'tableId': '1569971861958893570', 'tableName': '01请勿删除', 'customerName': '问', 'customerPhone': '15678300490', 'mealTime': None}, {'mealCode': 'A0016', 'mealQrCode': '?oid=1572438857370632193&code=08c8231&$$', 'mealQrCodeUrl': None, 'amount': 0.01, 'discountAmount': 0.0, 'payAmount': 0.01, 'id': '1572438857370632193', 'createdTime': '2022-09-21 12:13:38', 'statusId': 32, 'statusName': '已支付', 'typeId': 1, 'typeName': '普通订单', 'payStatusId': 32, 'payStatusName': '已支付', 'tableId': '1569971861958893570', 'tableName': '01请勿删除', 'customerName': '卜卜卜卜贝', 'customerPhone': '13509625896', 'mealTime': None}]"
# bb =json.loads(aa)
# print(type(bb))